package com.zzyl.mapper;

import com.zzyl.entity.NursingProjectPlan;
import com.zzyl.vo.NursingProjectPlanVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Mapper
public interface NursingProjectPlanMapper {


    // 3.2 给护理计划 批量添加护理项目
    int insertBatch(@Param("list") List<NursingProjectPlan> projectPlanList);

    // 3.6 删除护理计划,里面的护理项目
    @Delete("delete from nursing_project_plan where plan_id = #{nursingPlanId}")
    void deleteByNursingPlanId(@Param("nursingPlanId") Long nursingPlanId);

    //3.5 修改护理计划时 护理计划项目表 受影响的行数
    int deleteByIds(List<Long> ids);



}
